import BaseModel from '../BaseModel'

import Buyer from './Buyer';
import PaymentDetail from './PaymentDetail';
import Product from './Product';
import OrderImage from './OrderImage';

/**
 * 订单
 */
export default class Order extends BaseModel  {

    /**订单号*/
    public order_number = ""
    /**购买者手机号码*/
    public buyer_phone = ""
    /**送货地址*/
    public buyer_address = ""
    /**订单总价*/
    public total_price = 0
    /**最终订单总价（用户付款金额）(总应收金额)*/
    public total_price_final = 0
    /**总实收金额*/
    public total_settled_money = 0
    /**订单产品种数*/
    public item_count = 0
    /**订单所有产品总件数*/
    public total_count = 0
    /**订单状态(0:待审核，1:待拣货，2:待送货，3:已完成，-1:已取消)*/
    public order_status = 0
    /**取货码*/
    public pickup_code = ""
    /**取货方式（0.自提，1.配送至车，2.物流）*/
    public delivery_type = 0
    /**付款周期(0.全额付款, 1.部分付款)*/
    public pay_period = 0
    /**备注*/
    public remark = ""
    /**确认付款时间戳*/
    public authorized_time = 0
    /**确认拣货时间戳*/
    public confirm_pick_time = 0
    /**完成订单时间戳*/
    public finish_time = 0
    /**拣货区域&amp;货架的范围*/
    public place_range_txt = ""
    /**顾客*/
    public buyer = new Buyer()
    /**支付详情（每种支付方式各付了多少）*/
    public payment_detail = new PaymentDetail()
    /**产品*/
    public products = new Array<Product>()
    /**订单图片*/
    public order_images = new Array<OrderImage>()
}
